﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace yq.IBase.Basis
{
    /// <summary>
    /// 表示这个字段和数据库相关
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
    public class FromDbAttribute : Attribute
    {
        public string FieldName = "";
        public bool Iskey = false;

        public FromDbAttribute(string fieldName="", bool iskey = false)
        {
            FieldName = fieldName;
            Iskey = iskey;
        }
    }
}
